Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to GltfExporter to strip unused attributes #7153

Merged
merged 3 commits into from
Nov 29, 2024

Conversation

willeastcott
Copy link
Contributor

Adds options.stripUnusedAttributes to GltfExporter which strips out any unreferenced vertex attributes. Defaults to false.

Partially addresses #7144

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

@@ -742,8 +777,15 @@ class GltfExporter extends CoreExporter {
*
* @param {Entity} entity - The root of the entity hierarchy to convert.
* @param {object} options - Object for passing optional arguments.
* @param {number} [options.maxTextureSize] - Maximum texture size. Texture is resized if over
* the size.
* @param {number} [options.maxTextureSize] - Maximum texture size. Texture is resized if over the size.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

glad we're going over the 80 column limit.

@willeastcott willeastcott merged commit 0cc2a2d into main Nov 29, 2024
8 checks passed
@willeastcott willeastcott deleted the strip-attributes branch November 29, 2024 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants